
public class FibArrays 
{

	public static void main(String[] args) 
	{
		int [] fibArray = new int[26];	
		double q = 0;
		fibArray[0]=0;
		
		for ( int i=1, n1=0 , n2=1, n3 = 0 ; i< fibArray.length ; i++, n1=n2, n2=n3, n3=n2+n1 )
		{
			System.out.print(i + " :  ");
			fibArray[i]= n3;
			int e = fibArray[i-1];
			if (0<e )
				{
				
				q = (double) (fibArray[i]) / (double) e;				
//				System.out.print(q);
//				System.out.println(fibArray[i-2] + fibArray[i-1] + fibArray[i]);
				System.out.format("%d + %d = %d : q= %.13f \n", fibArray[ i-2], fibArray[i-1], fibArray[i], q);    // 3+5=8 : q= 1.625
				}
			else
			{
				System.out.format("fib %d\n", n3);
			}
		} 
	}

}
